package com.njbdqn.qiy_person.vo;

import java.util.Date;

import org.njbdqn.commons.UrlUtil.LocalHostUrl;

public class CommentsVO {
	 private Integer commentid;
	 private String dynamicid;
	 private String username;
	 private String userpic;
	 private Date commentdate;
	 private String commentStr;
	 private Integer commentpraise;
	 
	 
	 
	 
	public Integer getCommentpraise() {
		return commentpraise;
	}
	public void setCommentpraise(Integer commentpraise) {
		this.commentpraise = commentpraise;
	}
	public String getDynamicid() {
		return dynamicid;
	}
	public void setDynamicid(String dynamicid) {
		this.dynamicid = dynamicid;
	}
	public Integer getCommentid() {
		return commentid;
	}
	public void setCommentid(Integer commentid) {
		this.commentid = commentid;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getUserpic() {
		if(userpic.length() < 20) {
			return LocalHostUrl.IP+userpic;
		}else {
			return userpic;
		}
		
	}
	public void setUserpic(String userpic) {
		this.userpic = userpic;
	}
	public Date getCommentdate() {
		return commentdate;
	}
	public void setCommentdate(Date commentdate) {
		this.commentdate = commentdate;
	}
	public String getCommentStr() {
		return commentStr;
	}
	public void setCommentStr(String commentStr) {
		this.commentStr = commentStr;
	}
}
